package cn.yj.register;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author Liyj
 */
@ConfigurationProperties(prefix = "spring.rpc")
public class RpcProperties {

	/**
	 * LOCAL
	 * REDIS
	 */
	private String configType;

	private Provider provider;

	public static class Provider {

		/**
		 * ip:port
		 */
		private String host;

		public String getHost() {
			return host;
		}

		public void setHost(String host) {
			this.host = host;
		}
	}

	public String getConfigType() {
		return configType;
	}

	public void setConfigType(String configType) {
		this.configType = configType;
	}

	public Provider getProvider() {
		return provider;
	}

	public void setProvider(Provider provider) {
		this.provider = provider;
	}
}

